BaseOperator
Ecng.Common
Provides a base implementation for arithmetic operators.
実装: IOperator<T>, IComparer<T>, IOperator, IComparer
メソッド
Add
public abstract T Add(T first, T second)
result = baseOperator.Add(first, second)
Adds two values.
- first
- The first value.
- second
- The second value.
戻り値: The result of addition.
Compare
public abstract int Compare(T x, T y)
result = baseOperator.Compare(x, y)
Compares two values.
- x
- The first value.
- y
- The second value.
戻り値: A value indicating the relative order.
Divide
public abstract T Divide(T first, T second)
result = baseOperator.Divide(first, second)
Divides the first value by the second.
- first
- The first value.
- second
- The second value.
戻り値: The result of division.
Ecng#Common#IOperator#Add(object, object)
Adds two objects.
- first
- The first object.
- second
- The second object.
戻り値: The result of addition.
Ecng#Common#IOperator#Divide(object, object)
Divides the first object by the second.
- first
- The first object.
- second
- The second object.
戻り値: The result of division.
Ecng#Common#IOperator#Multiply(object, object)
Multiplies two objects.
- first
- The first object.
- second
- The second object.
戻り値: The result of multiplication.
Ecng#Common#IOperator#Subtract(object, object)
Subtracts the second object from the first.
- first
- The first object.
- second
- The second object.
戻り値: The result of subtraction.
Multiply
public abstract T Multiply(T first, T second)
result = baseOperator.Multiply(first, second)
Multiplies two values.
- first
- The first value.
- second
- The second value.
戻り値: The result of multiplication.
Subtract
public abstract T Subtract(T first, T second)
result = baseOperator.Subtract(first, second)
Subtracts the second value from the first.
- first
- The first value.
- second
- The second value.
戻り値: The result of subtraction.
System#Collections#IComparer#Compare(object, object)
Compares two objects.
- x
- The first object.
- y
- The second object.
戻り値: A value indicating the relative order.